import { defineStore } from "pinia";
import { chartColors, globalThemeJson } from "@renderer/themes/index";
interface ThemeConfigState {
  currentThemeColor: string[];
  globalTheme: any;
}

export const useThemeConfigStore = defineStore("themeConfig", {
  state: (): ThemeConfigState => ({
    currentThemeColor: chartColors[0].color,
    globalTheme: globalThemeJson,
  }),
  actions: {
    setCurrentThemeColor(color: string[]) {
      this.currentThemeColor = color;
    },
  },
  getters: {},
});
